import java.util.Scanner;

public class YangHuiTriangle {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        int n=input.nextInt();
        int[][] a=new int[100][100];
        for(int i=0;i<n;i++) {
            for(int j=0;j<=i;j++) {
                if(j==0||j==i) {
                    a[i][0]=a[i][j]=1;
                }else
                    a[i][j]=a[i-1][j-1]+a[i-1][j];
                System.out.print(a[i][j]+" ");
            }
            System.out.println();
        }
    }

}
